Skip to main content
Plugins / Block Git changes

Block Git changes

by qwerty287

Plugin to block uncommited changes in the Git repository


Plugin that fails if the Git repository contains any uncommited changes.

Usage

pipeline:
    block-changes:
        image: codeberg.org/qwerty287/woodpecker-block-git-changes

This will never fail because there isn't any change done before.

pipeline:
    echo:
        image: alpine
        commands:
            - echo "hello world" > README.md

    block-changes:
      image: codeberg.org/qwerty287/woodpecker-block-git-changes

This will fail if your README.md doesn't already contain hello world.